<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <script>
    // 数组解构允许我们按照一一对应的关系从数组中提取值然后将值赋值给变量
    let ary = [1, 2, 3];
    let [a, b, c, d, e] = ary;
    console.log(a);
    console.log(b);
    console.log(c);
    // 如果解构不成功，变量的值为 undefined
    console.log(d);  // undefined
    console.log(e);  // undefined
    </script>
</body>
</html>